package com.fourgirls.xiaoxiang.service.ShoppingCart;



import com.fourgirls.xiaoxiang.pojo.Shopping.ShoppingVo;
import com.fourgirls.xiaoxiang.pojo.ShoppingCart.ShoppingCartIdVo;
import com.fourgirls.xiaoxiang.pojo.ShoppingCart.ShoppingCartVo;
import com.fourgirls.xiaoxiang.pojo.ShoppingCart.UserNameShoppingCartVo;
import com.fourgirls.xiaoxiang.pojo.ShoppingCart.UserShoppingCartVo;

import java.util.List;

public interface UserShoppingCartService {
    /**
     * 进行级联，将user表和shopping表中的数据一一对应查询起来
     * @return
     */
    public List<UserShoppingCartVo> findAllUserShopping(UserNameShoppingCartVo userNameShoppingCartVo);

    /**
     * 向shoppingcart表中的增加一条数据
     * @param shoppingCartVo
     * @return
     */
    public int addShoppingCart(ShoppingCartVo shoppingCartVo);

    /**
     * 删除shoppingcart表中的一条数据
     * @param shoppingCartIdVo
     * @return
     */
    public int deleteShoppingCart(ShoppingCartIdVo shoppingCartIdVo);
}
